home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / CPlusPlus / ODTypesM.xh < prev    next >
Encoding:
Text File  |  1997-02-13  |  5.0 KB  |  269 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: ODTypesM.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emitxh.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_Module_OpenDoc_Global_Types_defined
  11. #define SOM_Module_OpenDoc_Global_Types_defined 1
  12. #include <som.xh>
  13.  
  14. /*
  15.  * Start of user-defined types:
  16.  */
  17. typedef
  18. DescType ODDescType;
  19. typedef
  20. AESendMode ODSendMode;
  21. typedef
  22. AESendPriority ODSendPriority;
  23. typedef
  24. AEEventClass ODEventClass;
  25. typedef
  26. AEEventID ODEventID;
  27.  
  28. /*
  29.  *  Types added for OSAObject support
  30.  */
  31. typedef
  32. ODULong ODScriptingSubType;
  33. typedef
  34. ODULong ODScriptingConnection;
  35. typedef
  36. ODULong ODOSAID;
  37.  
  38. /*
  39.  *  OS specific types
  40.  * 
  41.  *   The following typedefs are OS specific. They are put together in this file for the
  42.  *   time being. However, they can be put into separate files if desired. For example,
  43.  *   all the primitive types will be put in ODPlatformMisc.h;
  44.  *   all graphics system types will be put in ODPlatformGraphics.h;
  45.  *   all File system types will be put in ODPlatformFiles.h; and so on.
  46.  *   The advantage of splitting them in separate files is the changing one type will not
  47.  *   require recompiling all the files which includea ODTypes.h. Also, there may be a lot
  48.  *   of OS-specific types. If that's the case, we don't want them all in one file.
  49.  * 
  50.  *  Text
  51.  */
  52. typedef
  53. long  ODITextFormat;
  54.  
  55. /*
  56.  * -- Share exact same alignment between 68k & PowerPC.
  57.  * -- User to add padding to idl as desired for better alignment.
  58.  */
  59. #if powerc
  60. #  pragma options align=mac68k
  61. #endif
  62. typedef
  63. struct ODIText {
  64. ODITextFormat format;
  65. ODByteArray text;
  66. } ODIText;
  67. #if powerc
  68. #  pragma options align=reset
  69. #endif
  70. typedef
  71. struct ODIText ODName;
  72. typedef
  73. ODName ODContainerName;
  74. typedef
  75. ODName ODDocumentName;
  76.  
  77. /*
  78.  *  Imaging
  79.  */
  80. typedef
  81. ODHandle ODIconFamily;
  82.  
  83. /*
  84.  *  Events
  85.  */
  86. typedef
  87. ODUShort ODEventType;
  88. typedef
  89. struct EventRecord ODEventData;
  90. class ODFrame;
  91. class ODFacet;
  92.  
  93. /*
  94.  * -- Share exact same alignment between 68k & PowerPC.
  95.  * -- User to add padding to idl as desired for better alignment.
  96.  */
  97. #if powerc
  98. #  pragma options align=mac68k
  99. #endif
  100. typedef
  101. struct ODEventInfo {
  102. ODFrame* embeddedFrame;
  103. ODFacet* embeddedFacet;
  104. struct ODPoint where;
  105. ODBoolean propagated;
  106. } ODEventInfo;
  107. #if powerc
  108. #  pragma options align=reset
  109. #endif
  110. typedef
  111. ODULong ODIdleFrequency;
  112. typedef
  113. ODULong ODTime;
  114.  
  115. /*
  116.  *  Menus
  117.  */
  118. typedef
  119. ODSShort ODMenuID;
  120. typedef
  121. ODSShort ODMenuItemID;
  122. typedef
  123. ODSLong ODCommandID;
  124.  
  125. /*
  126.  *  Windows
  127.  */
  128. typedef
  129. ODUShort ODWindowLayer;
  130.  
  131. /*
  132.  *  Name Binding
  133.  */
  134. typedef
  135. ODISOStr ODKind;
  136.  
  137. /*
  138.  *  An opaque type identifying a specific part kind
  139.  */
  140. typedef
  141. ODISOStr ODCategory;
  142.  
  143. /*
  144.  *  An opaque type identifying a specific part category
  145.  */
  146. typedef
  147. ODISOStr ODEditor;
  148.  
  149. /*
  150.  *  An opaque type identifying a specific part editor
  151.  */
  152. typedef
  153. ODISOStr ODContainerSuite;
  154.  
  155. /*
  156.  *  An opaque type identifying a specific container suite
  157.  */
  158. typedef
  159. ODULong ODUpdateID;
  160.  
  161. /*
  162.  *  Content update IDs
  163.  */
  164. typedef
  165. ODULong ODDraftKey;
  166.  
  167. /*
  168.  *  Drag and Drop
  169.  */
  170. typedef
  171. ODBoolean ODDragResult;
  172.  
  173. /*
  174.  *  Link Protocol
  175.  */
  176. typedef
  177. ODULong ODLinkUpdateResult;
  178. typedef
  179. ODULong ODPasteAsMergeSetting;
  180.  
  181. /*
  182.  * -- Share exact same alignment between 68k & PowerPC.
  183.  * -- User to add padding to idl as desired for better alignment.
  184.  */
  185. #if powerc
  186. #  pragma options align=mac68k
  187. #endif
  188. typedef
  189. struct ODLinkInfo {
  190. ODType kind;
  191. ODTime creationTime;
  192. ODTime changeTime;
  193. ODUpdateID change;
  194. ODBoolean autoUpdate;
  195. } ODLinkInfo;
  196.  
  197. /*
  198.  *  Link Dialogs
  199.  */
  200. #if powerc
  201. #  pragma options align=reset
  202. #endif
  203.  
  204. /*
  205.  * -- Share exact same alignment between 68k & PowerPC.
  206.  * -- User to add padding to idl as desired for better alignment.
  207.  */
  208. #if powerc
  209. #  pragma options align=mac68k
  210. #endif
  211. typedef
  212. struct ODPasteAsResult {
  213. ODBoolean pasteLinkSetting;
  214. ODBoolean autoUpdateSetting;
  215. ODBoolean mergeSetting;
  216. ODTypeToken selectedView;
  217. ODType selectedKind;
  218. ODType translateKind;
  219. ODEditor editor;
  220. } ODPasteAsResult;
  221. #if powerc
  222. #  pragma options align=reset
  223. #endif
  224. typedef unsigned long ODLinkInfoAction;
  225. #define kODLinkInfoCancel 1UL
  226. #define kODLinkInfoOk 2UL
  227. #define kODLinkInfoBreakLink 3UL
  228. #define kODLinkInfoUpdateNow 4UL
  229. #define kODLinkInfoFindSource 5UL
  230.  
  231. /*
  232.  * -- Share exact same alignment between 68k & PowerPC.
  233.  * -- User to add padding to idl as desired for better alignment.
  234.  */
  235. #if powerc
  236. #  pragma options align=mac68k
  237. #endif
  238. typedef
  239. struct ODLinkInfoResult {
  240. ODLinkInfoAction action;
  241. ODBoolean autoUpdate;
  242. } ODLinkInfoResult;
  243.  
  244. /*
  245.  * 
  246.  *  Constants
  247.  * 
  248.  */
  249. #if powerc
  250. #  pragma options align=reset
  251. #endif
  252. #define OpenDoc_Global_Types_OpenDoc_Types_Version "1.0."
  253.  
  254. #ifndef SOM_DONT_USE_SHORT_NAMES
  255. #ifndef SOMTGD_OpenDoc_Types_Version
  256.     #ifdef OpenDoc_Types_Version
  257.         #undef OpenDoc_Types_Version
  258.         #define SOMTGD_OpenDoc_Types_Version 1
  259.     #else
  260.         #define OpenDoc_Types_Version OpenDoc_Global_Types_OpenDoc_Types_Version
  261.     #endif /* OpenDoc_Types_Version */
  262. #endif /* SOMTGD_OpenDoc_Types_Version */
  263. #endif /* SOM_DONT_USE_SHORT_NAMES */
  264.  
  265. /*
  266.  * End of user-defined types.
  267.  */
  268. #endif /* SOM_Module_OpenDoc_Global_Types_defined */
  269.